package ct.producer.Bean;

import ct.common.bean.Data;

/**
 * @Author Jeremy Zheng
 * @Date 2021/2/11 15:50
 * @Version 1.0
 */
//联系人
public class Contact extends Data {
    private String tel;
    private String name;

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //TODO ???不理解
    public void setValue(Object val) {
        content = (String) val;
        String[] values = content.split("\t");
        setName(values[1]);
        setTel(values[0]);
    }

    @Override
    public String toString() {
        return "Contact[" + tel + "," + name + "]";
    }
}
